import {GET,POST,FILE,FILEPOST,PUT,GETNOBASE} from "../api";
//mock请求路径
const indexUrl=  {
    'leftTop':'/bigscreen/countDeviceNum',//左上
    'leftCenter':'/bigscreen/countUserNum',//左中
    "centerMap":"/bigscreen/centerMap",
    "centerBottom":"/bigscreen/installationPlan",

    'leftBottom':"/bigscreen/leftBottom", //坐下
    'rightTop':"/bigscreen/alarmNum", //报警次数
    'rightBottom':'/bigscreen/rightBottom',//右下 
    'rightCenter':'/bigscreen/ranking',// 报警排名

}   

//真是接口路径
const indexUrlReal=  {
     'getDevData':'/Led/getDevData',
     'getRechargeData':'/Led/getRechargeData',
   
      'getTopData':'/Led/getTopData ' ,
     'getDeviceRunData':'/Led/getDeviceRunData',
      'getRechargeOrderList':'/Led/getRechargeOrderList',// 充值订单列表
     'getConsumOrderList':'/Led/getConsumOrderList',
    'getRechargeSumDay':'/Led/getRechargeSumDay',// 
}



export default indexUrl

// mock请求
/**左上--设备内总览 */
export const countDeviceNum=(param:any={})=>{
    return GET(indexUrl.leftTop,param)
}

/**左中--用户总览 */
export const countUserNum=(param:any={})=>{
    return GET(indexUrl.leftCenter,param)
}

/**左下--设备提醒 */
export const leftBottom=(param:any={})=>{
    return GET(indexUrl.leftBottom,param)
}

/**中上--地图 */
export const centerMap=(param:any={})=>{
    return GET(indexUrl.centerMap,param)
}

/**中下--安装计划 */
export const installationPlan=(param:any={})=>{
    return GET(indexUrl.centerBottom,param)
}

/**右上--报警次数 */
export const alarmNum=(param:any={})=>{
    return GET(indexUrl.rightTop,param)
}

/**右中--报警排名 */
export const ranking=(param:any={})=>{
    return GET(indexUrl.rightCenter,param)
}

/**右下--设备状态 */
export const rightBottom=(param:any={})=>{
    return GET(indexUrl.rightBottom,param)
}



//真实请求

/**设备内总览 */
export const getDevData=(param:any={})=>{
    return GET(indexUrlReal.getDevData,param)
}

/**城市门店数量当月营收 */
export const getRechargeData=(param:any={})=>{
    return GET(indexUrlReal.getRechargeData,param)
}

/**商户营收排行榜Top8 */
export const getTopData=(param:any={})=>{
    return GET(indexUrlReal.getTopData,param)
}
/**设备运行数据 */
export const getDeviceRunData = (param:any={})=>{
    return GET(indexUrlReal.getDeviceRunData,param)
}
/**充值订单 */
export const getRechargeOrderList = (param:any={})=>{
    return GET(indexUrlReal.getRechargeOrderList,param)
}
/**消费订单 */
export const getConsumOrderList = (param:any={})=>{
    return GET(indexUrlReal.getConsumOrderList,param)
}
/**充消总览*/
export const getRechargeSumDay = (param:any={})=>{
    return GET(indexUrlReal.getRechargeSumDay,param)
}
